import { ref } from 'vue'
import request from '@/utils/request.js'
//根据课件名称模糊查询课件
export const selectCoursewareListByName = (coursewareName, courseId) => {
    return request.get('/courseware/selectWare/' + coursewareName + '/' + courseId)
}
//课程编号查询课件数量
export const selectCoursewareCount = (courseId) => {
    return request.get('/courseware/getCoursewareNum?courseId=' + courseId)
}
//根据资料名称模糊查询资料
export const selectFileListByName = (infoName, courseId) => {
    return request.get('/FileInfo/selectFileInfo/' + infoName + '/' + courseId)
}
//课程编号查询资料数量
export const selectFileCount = (courseId) => {
    return request.get('/FileInfo/getFileInfoNum?courseId=' + courseId)
}